body{
    background-color: #F3F5F7;
}

/* header 头部 开始 */
header{
    width: 1300px;  
    margin: 20px auto;
    /* 伸缩布局 */
    display: flex;
    /* 每个子盒子的左右添加margin */
    justify-content: space-around;
    /* 垂直方向居中 */
    align-items: center;
}

/* 195*42 */
.logo{
    width: 195px;
    height: 42px;
}

.logo a{
    display: block;
    width: 100%;
    height: 100%;
    background: url("../学成在线项目-材料包/images/logo.png") no-repeat;
    /* 隐藏超链接中的文字 */
    text-indent: -990px;
    overflow: hidden;
}

nav{
    width: 280px;
    margin-left: 20px;
}

nav ul{
    display: flex;
    gap:30px;  /* 添加间距 */
    font-size: 18px;
}

nav ul li a:hover{
    border-bottom: 2px solid #0DA4FF;
}

.search{
    display: flex;
    align-items: center;
}

.search input{
    width: 360px;
    height: 40px;
    border: 1px solid #0DA4FF;
    outline: none;  /* 隐藏轮廓线 */
}

/* 50*40 */
.search button{
    width: 50px;
    height: 40px;
    border: 0;
    outline: none; /* 隐藏轮廓线 */
    background: url("../学成在线项目-材料包/images/fa-search.png") no-repeat;
}

.personal{
    width: 360px; 
    display: flex;
    gap: 15px;
    align-items: center;
}

.alarm{
    /* 父相子绝 */
    position: relative;
}
.alarm span{
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: red;
    position: absolute;
    top: 0;
    right: -5px;
}

.personal .avatar img{
    border-radius: 50%;
    transition: all 0.5s;
    margin: 10px;
}

.personal .avatar img:hover{
    transform: rotate(-360deg);
}

/* header 头部 结束 */

/* banner 开始 */
.banner{
    background-color: #1C036C;
    display: flex;
    justify-content: space-around;
}

.inner{
    /* banner.jpg 尺寸 1199*420 */
    width: 1199px;
    height: 420px;
    background: url("../学成在线项目-材料包/images/banner.jpg") no-repeat;
    display: flex;        /* 伸缩布局 */
    justify-content: space-between;  /* 左右盒子贴着父元素，中间空白间隙平均分配 */
    align-items: center;  /* 垂直方向居中 */
}

/* 侧边导航栏 */
.subnav ul{
    width: 190px;
    height: 420px;
    background-color: rgba(0,0,0,0.5);
    display: flex;          /* 伸缩布局 */
    flex-direction: column; /* 垂直方向从上到下排列 */
    justify-content: space-around;  /* 每个子盒子的左右添加margin */
}
.subnav a{
    color: white;
    font-size: 14px;
    margin: 20px;
}
.subnav a span{
    margin-left: 70px;
}

/* 圆点 */
.circle{
    display: flex;
    margin-top: 360px;
}
.circle li{
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin: 5px 8px;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.5s;
}
.circle li:hover{
    background-color: #fff;
}

/* 我的课程表 */
.timebook{
    /* width: 220px;
    height: 300px; */
    background-color: white;
}
.timebook dd ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.timebook dt{
    width: 220px;
    height: 50px;
    background-color: #9BCEE9;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    line-height: 50px;
}
.timebook dd li{
    padding: 10px 15px;
    border-bottom: 1px solid #ccc;
}
.timebook dd li:last-child{
    border:0;
}
.timebook h5{
    font-size: 16px;
}
.timebook .all{
    display: block;
    width: 80%;
    height: 40px;
    margin: 10px auto;
    color: #51C1FF;
    border: 1px solid #51C1FF;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
}
.timebook .all:hover{
    background-color: #51C1FF;
    color: white;
}

/* banner 结束 */

/* 精品推荐 开始 */
.recommend {
    height: 60px;
    line-height: 60px;
    background-color: white;
    margin: 10px auto;
    width: 1200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recommend .rec-l {
    float: left;
    margin-left: 30px;
}

.recommend .rec-l strong {
    color: #00a4ff;
    font-size: 16px;
    margin-right: 10px;
}

.recommend .rec-l a {
    margin: 0 10px;
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

.recommend .rec-l a:hover {
    color: #00a4ff;
}

.recommend em {
    float: right;
    margin-right: 30px;
    font-style: normal;
    font-size: 14px;
    color: #00a4ff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.recommend em:hover {
    color: #0086d6;
}

/* 精品推荐 结束 */

/* 精品产品 开始 */
.products {
    width: 1200px;
    margin: 30px auto;
}

.products .pro-hd {
    height: 50px;
    line-height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products .pro-hd h4 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.products .pro-hd a {
    font-size: 14px;
    color: #999;
    transition: color 0.3s ease;
}

.products .pro-hd a:hover {
    color: #00a4ff;
}

.products .pro-bd ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.products .pro-bd ul li {
    width: 228px;
    height: 270px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products .pro-bd ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.products .pro-bd ul li .pic {
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.products .pro-bd ul li .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.products .pro-bd ul li:hover .pic img {
    transform: scale(1.1);
}

.products .pro-bd ul li .pro-title {
    font-size: 14px;
    margin: 15px;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
    color: #333;
}

.products .pro-bd ul li p {
    font-size: 12px;
    color: #999;
    margin: 0 15px 15px;
}

.products .pro-bd ul li p span {
    color: #ff7c2d;
    font-weight: bold;
}

/* 精品产品 结束 */

/* 页脚 开始 */
footer {
    background-color: white;
    padding: 40px 0;
    margin-top: 50px;
}

footer .w {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

footer .footer-l {
    width: 50%;
}

footer .footer-l img {
    margin-bottom: 20px;
}

footer .footer-l p {
    font-size: 12px;
    color: #999;
    line-height: 20px;
    margin-bottom: 15px;
}

footer .footer-l a {
    display: inline-block;
    width: 120px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border: 1px solid #00a4ff;
    color: #00a4ff;
    font-size: 14px;
    transition: all 0.3s ease;
}

footer .footer-l a:hover {
    background-color: #00a4ff;
    color: white;
}

footer .footer-r {
    width: 40%;
    display: flex;
    justify-content: space-between;
}

footer .footer-r dl dt {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

footer .footer-r dl dd {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer .footer-r dl dd:hover {
    color: #00a4ff;
}

/* 页脚 结束 */